package com.fz.us.admin.company.entity;


import javax.persistence.*;

/**
 * 会签信息记录表
 * Created by ZhuChunXiao on 2017/2/6.
 */
@Entity
@Table(name="sys_jointlySign")
public class JointlySign extends CompanyEntity {


    private static final long serialVersionUID = 418865986193964945L;
    //任务实例表
    private TaskEntity taskEntity;
    //会签人
    private User user;
    //对应步骤
    private StepBrief stepBrief;
    //完成标志
    private boolean finish;

    @Column(columnDefinition = "tinyint(1) default 0")
    public boolean isFinish() {
        return finish;
    }

    public void setFinish(boolean finish) {
        this.finish = finish;
    }
    @ManyToOne(fetch = FetchType.LAZY)
    public TaskEntity getTaskEntity() {
        return taskEntity;
    }

    public void setTaskEntity(TaskEntity taskEntity) {
        this.taskEntity = taskEntity;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }


    @ManyToOne(fetch = FetchType.LAZY)
    public StepBrief getStepBrief() {
        return stepBrief;
    }

    public void setStepBrief(StepBrief stepBrief) {
        this.stepBrief = stepBrief;
    }
}
